{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <h1>角色列表</h1>
        <a href="{:url('admin/con2/add') }" class="btn btn-primary" style="float:right;">添加角色</a>
        <table class="table table-hover ">
            <tr class="info">
                <th>ID</th>
                <th>职位</th>
                <th>操作</th>
            </tr>
            {volist name="list" key="k" id="v"}
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['rolename']}</td>
                <td>
                    <a href="#" class="btn btn-danger">删除</a>
                    <a href="#" class="btn btn-success">编辑</a>
                    <a href="{:url('admin/con2/shownode', ['id'=>$v['id']])}" class="btn btn-success">分配权限</a>
                </td>
            </tr>
            {/volist}
        </table>
    </div>

</div>
{/block}